<?php 
	if (isset($_GET["error"])) {
		if (mb_strlen($_GET['error'], 'utf-8') <= 10) {
			echo "<script>alert('$_GET[error]'); </script>";
		}
	} 
?>
<!DOCTYPE html>
<html>
<head>
  	<meta charset="UTF-8">
  	<title>login-mail</title>

	<link rel='stylesheet prefetch' href='css/bootstrap.min.css'>
    <link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />

    <script src="js/modernizr.js"></script>
</head>
<body class="login-page">
	<div class="login-form">
		<div class="login-content">
			<form method="post" action="class/checkLogin.php" role="form" id="form_login">
			<!--用户名-->
				<div class="form-group">
					<div class="input-group">
						<div class="input-group-addon">
							<i class="fa fa-user"></i>
						</div>
						<input type="text" class="form-control" name="username" id="username" placeholder="Username" autocomplete="off" />
					</div>
				</div>
			<!--密码-->
				<div class="form-group">
					<div class="input-group">
						<div class="input-group-addon">
							<i class="fa fa-key"></i>
						</div>
						<input type="password" class="form-control" name="password" id="password" placeholder="Password" autocomplete="off" />
					</div>
				</div>
			<!--验证码-->
				<div class="form-group">
					<div class="input-group">
						<input type="text" class="form-control" name="check" id="check" placeholder="" autocomplete="off" />
						<a style="position:absolute; float: right; margin:-10px 20px;">
							&nbsp; <img onclick="javascript:this.src='images/admin/image.php?k='+Math.random()" id="flash" width="70" height='30' border="0" src="images/admin/image.php" />
	                    </a>
					</div>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-primary btn-block btn-login">
						<i class="fa fa-sign-in"></i>
						登陆
					</button>
				</div>
			</form>
		</div>
	</div>
</body>
</html>
